package com.zzy.openrequest.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@Component
public class Prompt {


    private String model;

    private List<Message> messages;

    private Boolean stream;

    private Integer max_tokens;

    private double temperature;

    private double top_p;

    private double top_k;

    private double frequency_penalty;

    private Integer n;

    private ResponseFormat response_format;


    public Prompt() {
        this.max_tokens = 512;
        this.stream = false;
        this.temperature = 0.7;
        this.top_p = 0.7;
        this.top_k = 50;
        this.frequency_penalty = 0.5;
        this.n = 1;
        ResponseFormat format = new ResponseFormat();
        format.setType("text");
        this.response_format = format;


    }

}
